package com.group11.job.service;

import com.group11.common.pojo.Enterprise;
import com.group11.common.pojo.ResponseResult;
import com.group11.common.pojo.User;
import com.group11.common.vo.EnterpriseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("service-user")
public interface UserService {

    @GetMapping("getById")
    ResponseResult<User> getUserById(@RequestParam int id);

    @GetMapping("/enterprise/get")
    ResponseResult<EnterpriseVo> getEnterpriseByUserId(@RequestHeader int id);

    @GetMapping("/enterprise/getById")
    ResponseResult<EnterpriseVo> getEnterpriseById(@RequestParam int id);

}
